//
//  CellTopView.swift
//  testTableView
//
//  Created by TD Lemon on 2018/6/15.
//  Copyright © 2018 sunshinfight. All rights reserved.
//

import UIKit

class CellTopView: UIView {

    lazy var bgImageView: UIImageView = {
       let img = UIImageView()
        img.image = #imageLiteral(resourceName: "bgImage")
        return img
    }()
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        addSubview(bgImageView)
        
        bgImageView.topAnchor.constraint(equalTo: topAnchor).isActive = true
        bgImageView.bottomAnchor.constraint(equalTo: bottomAnchor).isActive = true
        bgImageView.leftAnchor.constraint(equalTo: leftAnchor).isActive = true
        bgImageView.rightAnchor.constraint(equalTo: rightAnchor).isActive = true
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
}
